package cn.madis.handler;

import cn.madis.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlockHandler {

    public static User getByIdBlockHandler(@PathVariable Long id, BlockException ex){
        return User.builder().id(-1L).name("降级").intro("降级").build();
    }
}
